package com.huohuzhihui.constants;

public class ContractConstants {
    public static final String assetAbi;

    public static final String assetBinary;

    public static final String shardAbi;

    public static final String shardBinary;

    public static final String testAbi;

    public static final String testBinary;



    static {
        try {
            assetAbi =
                    org.apache.commons.io.IOUtils.toString(
                            Thread.currentThread()
                                    .getContextClassLoader()
                                    .getResource("abi/DigitalAsset.abi"));
            assetBinary =
                    org.apache.commons.io.IOUtils.toString(
                            Thread.currentThread()
                                    .getContextClassLoader()
                                    .getResource("bin/DigitalAsset.bin"));

            shardAbi =
                    org.apache.commons.io.IOUtils.toString(
                            Thread.currentThread()
                                    .getContextClassLoader()
                                    .getResource("abi/DigitalAssetShard.abi"));
            shardBinary =
                    org.apache.commons.io.IOUtils.toString(
                            Thread.currentThread()
                                    .getContextClassLoader()
                                    .getResource("bin/DigitalAssetShard.bin"));

            testAbi =
                    org.apache.commons.io.IOUtils.toString(
                            Thread.currentThread()
                                    .getContextClassLoader()
                                    .getResource("abi/Asset.abi"));
            testBinary =
                    org.apache.commons.io.IOUtils.toString(
                            Thread.currentThread()
                                    .getContextClassLoader()
                                    .getResource("bin/Asset.bin"));


        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
